package com.chenxiao.field.fielddemo.entity;

import com.baomidou.mybatisplus.annotation.TableField;

import com.chenxiao.field.fielddemo.anno.FieldBody;
import com.chenxiao.field.fielddemo.anno.FieldStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Author: CX
 * @Date: Created in  2023/12/02 22:28
 * @version: v1.0
 * @Description: TODO
 **/
@Data
@FieldBody
public class User {
    private Long id;
    @FieldStyle
    private String sfzh;
    @TableField(value = "orgId")
    private String orgId;
    @TableField(value = "roleId")
    private String roleId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
}
